import Rolelist from '@/views/admininfo/rolelist.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/home.vue'),
      redirect: '/Wel',
      children: [
        { path: '/Wel', name: 'wel', component: () => import('../views/Wel.vue') },
        {
          path: '/rolelist',
          name: 'rolelist',
          component: () => import('../views/admininfo/rolelist.vue')
        },
        {
          path: '/permisslist',
          name: 'permisslist',
          component: () => import('../views/admininfo/permisslist.vue')
        },
        {
          path: '/adminlist',
          name: 'adminlist',
          component: () => import('../views/admininfo/adminlist.vue')
        },
        {
          path:'/user',
          name:'user',
          component:()=>import('../views/user.vue')
        },
        {
          path: '/CategoriesManagement',
          name: 'CategoriesManagement',
          component: () => import('../views/consult/CategoriesManagement.vue')
        },
        {
          path: '/ConsultManagement',
          name: 'ConsultManagement',
          component: () => import('../views/consult/ConsultManagement.vue')
        },
        {
          path: '/DoctorList',
          name: 'DoctorList',
          component: () => import('../views/DoctorInfo/DoctorList.vue')
        },
        {
          path: '/HospitalList',
          name: 'HospitalList',
          component: () => import('../views/DoctorInfo/HospitalList.vue')
        },
        {
          path: '/PbcDpet',
          name: 'PbcDpet',
          component: () => import('../views/DoctorInfo/PbcDpet.vue')
        },
        {
          path: '/SpecialtyList',
          name: 'SpecialtyList',
          component: () => import('../views/DoctorInfo/SpecialtyList.vue')
        },
        {
          path: '/TitlesList',
          name: 'TitlesList',
          component: () => import('../views/DoctorInfo/TitlesList.vue')
        },
        {
          path: '/yaopinfenlei',
          name: 'yaopinfenlei',
          component: () => import('../views/yaopinxinxi/yaopinfenlei.vue')
        },
        {
          path: '/yaopinliebiao',
          name: 'yaopinliebiao',
          component: () => import('../views/yaopinxinxi/yaopinliebiao.vue')
        },
        {
          path: '/jibingfennei',
          name: 'jibingfennei',
          component: () => import('../views/jibingguanli/jibingfennei.vue')
        },
        {
          path: '/jibingliebiao',
          name: 'jibingliebiao',
          component: () => import('../views/jibingguanli/yaopinliebiao.vue')
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login.vue')
    },
    
    {
      path: '/hoomss',
      name: 'hoomss',
      component: () => import('../views/xaingqingye/home.vue')
    },{
      path: '/xiangqin',
      name: 'hooms',
      component: () => import('../views/xaingqingye/xiangqin.vue')
    },
    {
      path: '/car',
      name: 'car',
      component: () => import('../views/xaingqingye/car.vue')
    }
  ]
})

export default router
